home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
os20
/
wb
/
unlha.lha
/
UnLha
/
UnLha.Script
< prev
next >
Wrap
AmigaDOS Script File
|
1992-12-13
|
1KB
|
30 lines
.key filename ; UnLha for ToolManager using ReqAsk/GetFile
; Can be used by DOCKs, APPICONs or CLI
; $VER: UnLha.1.Release
If NOT <filename>
GetFile TITLE "Please select the file(s)" PATTERN "#?.lha"
If WARN
ReqAsk "I wonder where*ndid that file go?" TITLE "How about a file then?" GADFMT "Cough Cough"
Else
GetFile TITLE "Please specify the destination" NOFILES VAR "DeviceName"
Lha x $GetFileResult $DeviceName
Delete >NIL: $DeviceName#?.displayme #?.xyz #?.txt
ReqAsk "OK, Finished extracting*n($GetFileResult)*nto*n($DeviceName)" TITLE "Press RETURN or ESC to continue" GADFMT "Bye"
EndIf
Else
ReqAsk "Would you like me to:*nList the archive or*n Extrack it to RAM" TITLE "UnLha Requester" GADFMT "Extract|List|Forget it!"
If $ReqAskResult EQ 1
Lha x <filename> RAM:
Delete >NIL: RAM:#?.displayme #?.xyz #?.txt
ReqAsk "OK, Finished extracting*n(<filename>)*nto*n(RAM)" TITLE "Press RETURN or ESC to continue" GADFMT "Bye"
EndIf
If $ReqAskResult EQ 2
Lha l <filename> >"CON:0/25/640/130/Lha Listing/WAIT"
EndIf
EndIf ; Thanks to Magnus Holmgren for creating the wonderful
; ReqChange, ReqAsk and GetFile,
; and to Nico François for his superb ReqTools library,
; and ofcourse lets not forget Stefan Boberg.